package com.stock;

import java.io.File;
import java.util.List;

import com.dalin.common.utils.NumberUtils;
import com.dalin.common.utils.TextUtils;

public class StockTest {

	/**
	 http://table.finance.yahoo.com/table.csv?s=600000.ss
	0Date,1Open,2High,3Low,4Close,5Volume,6Adj Close
	2014-11-28,9.78,9.79,9.50,9.56,8487700,9.56
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		double sum = 10;
		for (int i = 0; i < 20; i++) { 
			sum = sum * 1.03;
			System.out.println(sum);
		}
	/*	int i =0;
		while (true) {
			i++;
			//600196,
			List<StockProp> rtnList = DownloadData.getCurrentData("603227,603718,603311,603885,603108,603598,300461,603566,002757,300459,603599,300453,300452,300451,300450,603023,300468,300414,603022,603355,300458,300467,300457,603989,002758,300462,300455,002753,603968,300460,002755");
			if (i % 3 == 0) System.out.print(i+",");
			if (i % 90 == 0) System.out.println();
			for (StockProp sp : rtnList) {
				if (sp.getLimitUp() > sp.getValue() && sp.getValue()!=0.0) {
					System.out.println(sp.getCode()+sp.getName()+"="+sp.getLimitUp()+","+sp.getValue()+","+sp.getIncrease());
				}
			}
			Thread.sleep(1000);
		}*/
	}

	
	
}
/*
预测算法: http://blog.csdn.net/myfuturein/article/details/8949960
 * 1.低开概率高, 占64%左右, 但低开高开与上涨下跌概率没有关系,都是50%左右 
 * 2.上涨概率要比下跌概率低4个点, 47.5%
 * 3.
 */
